//
//  GlobalMacro.h
//  Comma
//
//  Created by 张诗雨 on 15/1/16.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

/*所有看起来是黑色的颜色*/
#define BLACKCOLOR [UIColor colorWithRed:37 / 255.0f green:37 / 255.0f blue:37 / 255.0f alpha:1]
/*下边bar的淡灰色*/
#define FOOTERGRAY [UIColor colorWithRed:248 / 255.0f green:248 / 255.0f blue:248 / 255.0f alpha:1]
/*下边bar的灰色线*/
#define LINEERGRAY [UIColor colorWithRed:178 / 255.0f green:178 / 255.0f blue:178 / 255.0f alpha:1]
/*所有圆形绿色*/
#define GREENCOLOR [UIColor colorWithRed:0 / 255.0f green:200 / 255.0f blue:200 / 255.0f alpha:1]
/*所有文字绿色*/
#define TEXTGREENCOLOR [UIColor colorWithRed:0 / 255.0f green:184 / 255.0f blue:184 / 255.0f alpha:1]
/*所有文字灰色*/
#define TEXTERGRAY [UIColor colorWithRed:153 / 255.0f green:153 / 255.0f blue:153 / 255.0f alpha:1]
/*所有分割线*/
#define DIVIDINGLINECOLOR [UIColor colorWithRed:200 / 255.0f green:199 / 255.0f blue:204 / 255.0f alpha:1]
/*所有红色*/
#define REDCOLOR [UIColor colorWithRed:240 / 255.0f green:0 / 255.0f blue:50 / 255.0f alpha:1]
/*获取屏幕尺寸*/
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

/*字体*/
#define DEFAULT_FONT(s) [UIFont fontWithName:@"Extralight" size:s]
#define ENGLISH_FONT(s) [UIFont fontWithName:@"Helvetica" size:s]
/*字体加粗*/
#define BOLDENGLISH_FONT(s) [UIFont fontWithName:@"Helvetica-Bold" size:s]
#define BOLDDEFAULT_FONT(s) [UIFont fontWithName:@"Extralight-Bold" size:s]
//获取系统版本
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define CurrentSystemVersion [[UIDevice currentDevice] systemVersion]

/*判断手机型号*/
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) : NO)

//获取当前语言
//#define CurrentLanguage ([[NSLocale preferredLanguages] objectAtIndex:0])
/*底部视图的模式*/
typedef NS_ENUM(NSInteger, FooterViewState) {
    // 不添加footerView
    FooterViewStateNone,
    // 普通模式的footerView,只有一个Button
    FooterViewStateNormal,
    // 自定义的footerView
    FooterViewStateCustom
};


#define WeiboSDKAppKey         @"3016847923"
#define WeiboSDKRedirectURI    @"http://www.isu.so"
#define WeiboSDKSecret         @"8dccda0f60553fc884120ee84608a00b"

#define TencentSDKAppKey   @"lqK1dOIJqjYupXF1"
#define TencentSDKAppID    @"1103405849"
